:root {
    --left-bg-color: rgba(87, 84, 236, 0.7);
    --right-bg-color: rgba(43, 43, 43, 0.8);
    --left-btn-hover-color: rgba(87, 84, 236, 1);
    --right-btn-hover-color: rgba(28, 122, 28, 1);
    --hover-width: 75%;
    --other-width: 25%;
    --speed: 1000ms;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: sans-serif;
    height: 100vh;
}

.container {
    width: 100%;
    height: 100%;
    background-color: #333;
    position: relative;
}

h1 {
    font-size: 2.5rem;
    color: #fff;
    position: absolute;
    top: 38%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

.split {
    position: absolute;
    width: 50%;
    height: 100%;
    overflow: hidden;
}

.split.left {
    left: 0;
    background-image: url(./ps.jpg);
    background-repeat: no-repeat;
    background-size: cover;
}

.split.right {
    right: 0;
    background-image: url(./xbox.jpg);
    background-repeat: no-repeat;
    background-size: cover;
}


.split.left::before{
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background-color: var(--left-bg-color);
}
.split.right::before{
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background-color: var(--right-bg-color);
}



.btn{
    color:#fff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    position: absolute;
    left:50%;
    transform: translateX(-50%);
    top:50%;
    border:#fff solid 0.2rem;
    width: 12rem;
    padding:1.5rem;
    text-align: center;
    text-transform: uppercase;
}

.split.left .btn:hover{
    background-color: var(--left-btn-hover-color);
    border-color: var(--left-btn-hover-color);
}

.split.right .btn:hover{
    background-color: var(--right-btn-hover-color);
    border-color: var(--right-btn-hover-color);
}

.hover-left .left{
    width: var(--hover-width);
}

.hover-left .split.right{
    width: var(--other-width);
}

.hover-right .left{
    width: var(--other-width);
}

.hover-right .right{
    width: var(--hover-width);
}

.split, .right::before,.left::before{
    transition: all var(--speed) ease-in-out;
}



@media (max-width:800px) {
    h1{
        font-size: 2rem;
        top:30%
    }
    .btn{
        padding:1.2rem;
        width: 12rem;
    }
}
